package com.zombie.logic.object.ai.action;

import com.zombie.logic.object.GameObject;
import com.zombie.logic.object.LiveObject;
import com.zombie.logic.object.ai.AI;

public class ActionFollow extends Action {

	public GameObject target;
	
	public ActionFollow(LiveObject targe){
		target = targe;
		type = ActionType.FOLLOW;
	}
	
	public void checkCondition(AI ai, LiveObject owner){
		super.checkCondition(ai, owner);
		if (target.position.dst(owner.position) < 32f)
			done = true;
	}
	
}
